vt-d: Do FLR of assigned devices with VT-d
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 24 Jan 2008 14:39:38 +0000 (14:39 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 24 Jan 2008 14:39:38 +0000 (14:39 +0000)
commitab49465010fc74dd9326527b273bb04382086aa7
tree0f1569ea61051f08b59c2af1a3a4ab927d300b21
parentf598b741ffe02bbf9dbc78af66c1fdd7b30e17aa
vt-d: Do FLR of assigned devices with VT-d

Currently there is a pdev_flr() function to do FLR before device
assignment in qemu, but most of devices don't have FLR capability.
What's more, should do FLR before assignment and deassignment for
keeping correct device status. If the device doesn't have FLR
capablility, this patch implemented to enter D3hot and return to D0 to
do FLR. And exposed pdev_flr() in VT-d utils, then it can be invoked
by assignment and deassignment functions.

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
tools/ioemu/hw/pass-through.c
xen/arch/x86/hvm/vmx/vtd/extern.h
xen/arch/x86/hvm/vmx/vtd/intel-iommu.c
xen/arch/x86/hvm/vmx/vtd/utils.c